package com.wuwei;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * @description: NacosCon_80 <br>
 * @date: 2021/2/19 17:49 <br>
 * @author: wuwei666 <br>
 * @version: 1.0 <br>
 */
@SpringBootApplication
@EnableDiscoveryClient
public class NacosCon_80 {

    @Bean
    @LoadBalanced
    public RestTemplate getRestTemplate(){
        return new RestTemplate();
    }

    public static void main(String[] args) {
        SpringApplication.run(NacosCon_80.class,args);
    }
}
